package com.shuoyue.ycgk.ui.papergroups.realpaper;

import android.os.Bundle;

import com.shuoyue.ycgk.base.ListWithPage;
import com.shuoyue.ycgk.entity.Paper;
import com.shuoyue.ycgk.entity.PaperSet;
import com.shuoyue.ycgk.entity.Type;
import com.shuoyue.ycgk.ui.papergroups.BaseFragmentPaperGroup;

public class FragmentRealPaper extends BaseFragmentPaperGroup {

    @Override
    protected void onItemClick(PaperSet paperSet) {
        RealPaperInfoActivity.start(mActivity, paperSet.getId(), type.getSubjectTypeId());
    }



    public static FragmentRealPaper getInstance(Type type, boolean isMine,int queryType) {
        FragmentRealPaper fragment = new FragmentRealPaper();
        fragment.title = type.getName();
        Bundle bundle = new Bundle();
        bundle.putSerializable("type", type);
        bundle.putBoolean("isMine", isMine);
        bundle.putInt("queryType", queryType);

        fragment.setArguments(bundle);
        return fragment;
    }


}
